package com.gzcstec.ftp.controller;

import com.gzcstec.ftp.service.FtpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ftp")
public class FTPControllerTest {

    @Autowired
    private FtpService ftpService;

    @RequestMapping("/upload")
    public String upload() {
        ftpService.uploadFile("/var/ftp/pub/" , "test.sql" , "d:/test.sql");
        return "ok";
    }
}
